import React from 'react';
import { Router, Route } from 'dva/router';
import DoctorsRegisterPage from './routes/DoctorsRegisterPage';
import PatientsRegisterPage from './routes/PatientsRegisterPage';
import RegisterPage from './routes/RegisterPage';
import PhysicianAuthPage from './routes/PhysicianAuthPage';
import SelectHospitalMapPage from './routes/SelectHospitalMapPage';
import SelectDeptListPage from './routes/SelectDeptListPage';
import SelectDoctorLevelListPage from './routes/SelectDoctorLevelListPage';
import UploadDoctorImagePage from './routes/UploadDoctorImagePage';
import UploadDoctorLicPage from './routes/UploadDoctorLicPage';
import addNewDept from './routes/AddNewDept';
import selectSpecial from './routes/selectSpecial';
import SelectImage from './routes/selectImage';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Route path="/" component={RegisterPage} />
      <Route path="/patients" component={PatientsRegisterPage} />
      <Route path="/doctors" component={DoctorsRegisterPage} />
      <Route path="/physicianAuth" component={PhysicianAuthPage} />
      <Route path="/selectHospital" component={SelectHospitalMapPage} />
      <Route path="/selectDept" component={SelectDeptListPage} />
      <Route path="/selectDoctorLevel" component={SelectDoctorLevelListPage} />
      <Route path="/uploadDoctorImage" component={UploadDoctorImagePage} />
      <Route path="/uploadDoctorLic" component={UploadDoctorLicPage} />
      <Route path="/addNewDept" component={addNewDept} />
      <Route path="/selectSpecial" component={selectSpecial} />
      <Route path="/selectImage" component={SelectImage} />
    </Router>
  );
}

export default RouterConfig;
